[IA64] added __read_mostly to some variables
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 9 Oct 2006 00:30:31 +0000 (18:30 -0600)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Mon, 9 Oct 2006 00:30:31 +0000 (18:30 -0600)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/xenmem.c
xen/arch/ia64/xen/xensetup.c
xen/arch/ia64/xen/xentime.c

index dcc285a36dfe3878f5bb0cee03d99ddabaef9466..c837f0fb4b5bc54c757cfeb54d8a1fb65fe51e84 100644 (file)
@@ -38,13 +38,13 @@ boolean_param("contig_mem", opt_contig_mem);
 #define opt_contig_mem 1
 #endif
 
-struct page_info *frame_table;
+struct page_info *frame_table __read_mostly;
 unsigned long max_page;
 
 /*
  * Set up the page tables.
  */
-volatile unsigned long *mpt_table;
+volatile unsigned long *mpt_table __read_mostly;
 
 void
 paging_init (void)
index 5a8ee914dd0380a81abdef68337a4998898c0f31..056d3c3cbabd4bc70cf7b13753d74a3d9069af37 100644 (file)
@@ -82,7 +82,7 @@ unsigned int opt_xenheap_megabytes = XENHEAP_DEFAULT_MB;
 unsigned long xenheap_size = XENHEAP_DEFAULT_SIZE;
 extern long running_on_sim;
 unsigned long xen_pstart;
-void *xen_heap_start;
+void *xen_heap_start __read_mostly;
 
 static int
 xen_count_pages(u64 start, u64 end, void *arg)
index 0ebce66c29818572e6d579c1bec6f20aa7cfaf65..b0d5ec0444a94fcde9f230f91e284f9e8f74a12d 100644 (file)
@@ -39,7 +39,7 @@ seqlock_t xtime_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED;
 #define TIME_KEEPER_ID  0
 unsigned long domain0_ready = 0;
 static s_time_t        stime_irq = 0x0;       /* System time at last 'time update' */
-unsigned long itc_scale, ns_scale;
+unsigned long itc_scale __read_mostly, ns_scale __read_mostly;
 unsigned long itc_at_irq;
 
 /* We don't expect an absolute cycle value here, since then no way